﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service.Base
{
    public interface IBaseService<TEntity, TVo> where TEntity : class
    {
        public Task<List<TVo>> Query();
        public Task<TVo> GetUserByIdAsync(int id);
        public Task<List<TVo>> GetAllUserAsync();
        public Task<int> addUserAsync(TVo vo);
        public Task<int> updateUserAsync(TVo vo);
        public Task<int> deleteUserAsync(TVo vo);
    }
}
